#!/bin/sh
### BEGIN INIT INFO
# Provides:      hb-system
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start bh-system at boot time
#Description:    Enable service provided by hb-system
### END INIT INFO


sleep 30

if [ -f /usr/local/bin/on_board_system_update ]
then
	echo "update firmware..........."
	rm /usr/local/bin/on_board_system
	mv /usr/local/bin/on_board_system_update  /usr/local/bin/on_board_system
	chmod 777 /usr/local/bin/on_board_system
	sync
	echo "update ok."
else
	echo "no new firmwae."
fi


/usr/local/bin/on_board_system &


exit 0
